{% extends "base-mobile.jinja" %}

{% block title %}{{share.title}}_{{share.cate.name}}_{% endblock %}

{% block main %}
<div class="page detail" id="detail">
	<h1>{{share.title}}</h1>
	<div class="author">{{share.user}}</div>
	<article>
		<span><a href="/share/detail/{{share.id}}/?mid={{cover_data.cover.id}}"><img src="{{cover_data.cover.path}}!650" /></a></span>
		<div class="d-content">{% autoescape off %}{{share.content|replace('{{domain}}share/search/keyword/', '/list/?tag=')|replace('_blank', '')}}{% endautoescape %}</div>

		{% for img in images %}
			{% if not img.id == cover_data.cover.id %}
			<span><a href="/share/detail/{{share.id}}/?mid={{img.id}}"><img class="lazyload" src="http://s.lovewith.me/static/images/blank.gif" data-original="{{img.path}}!650" /></a></span>
			{% endif %}
		{% endfor %}

		<div class="d-unlike" data-sid="{{share.id}}"><a href="javascript:;" class="ui-a"><b>喜欢</b><i></i></a></div>
	</article>
</div>
{% endblock %}

{% block statsScript %}
{% autoescape off %}{{share.user.id|add_stats(share.user.username, '%sshare/detail/mobile/%s/' % (domain, share.id))}}{% endautoescape %}
{% endblock %}